package com.yxw.live_vod_boot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 店铺开通信息
 * @author xiexuxin
 * @date 2023-12-17
 */
@Data
@TableName("yx_on_demand_apply")
@ApiModel("店铺开通信息")
public class YxOnDemandApplyEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "demand_id",type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="点播开通ID")
    private Long demandId;

    @TableField(value="demand_code")
    @ApiModelProperty(value="点播开通编号")
    private String demandCode;

    @TableField(value="space_id")
    @ApiModelProperty(value="所属空间id")
    private String spaceId;

    @TableField(value="user_id")
    @ApiModelProperty(value="登陆账号ID")
    private Long userId;

    @TableField(value="user_name")
    @ApiModelProperty(value="登陆账号名称")
    private String userName;

    @TableField(value="shop_id")
    @ApiModelProperty(value="店铺ID")
    private Long shopId;

    @TableField(value="shop_name")
    @ApiModelProperty(value="店铺名称")
    private String shopName;

    @TableField(value="apply_time_start")
    @ApiModelProperty(value="申请时间始")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date applyTimeStart;

    @TableField(value="apply_time_end")
    @ApiModelProperty(value="申请时间止")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date applyTimeEnd;

    @TableField(value="apply_duration")
    @ApiModelProperty(value="申请时长")
    private Integer applyDuration;

    @TableField(value="apply_des")
    @ApiModelProperty(value="描述")
    private String applyDes;

    @TableField(value="status")
    @ApiModelProperty(value="申请单状态 0-草稿1-审核中 2-生效中 3-作废 4-终止")
    private Integer status;

    @TableField(value="space_size")
    @ApiModelProperty(value="申请空间大小 上传存储空间大小G")
    private Integer spaceSize;

    @TableField(value="create_time")
    @ApiModelProperty(value="创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

}
